package com.gitee.form_token.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author Saturn
 * @since 2024-10-30
 */
@Data
@TableName("sys_resource")
public class SysResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "resource_id", type = IdType.AUTO)
    private Long id;

    @TableField("parent_id")
    private Long parentId;

    @TableField("resource_name")
    private String name;

    @TableField("resource_type")
    private Integer type;

    @TableField("url")
    private String url;

    @TableField("code")
    private String code;

    @TableField("icon")
    private String icon;

    @TableField("sort")
    private Integer sort;

}
